package com.ganbo.transation.controller;

import com.ganbo.transation.service.事务嵌套_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private 事务嵌套_Service 事务嵌套_service;


    @GetMapping("/qiantao")
    public void qiantao() throws Exception {
        事务嵌套_service.事务嵌套1();
        //事务嵌套_service.事务嵌套2();
    }


    @GetMapping("/xiaoshiwu")
    public void xiaoshiwu() {
        事务嵌套_service.xiaoshiwu();
    }

}
